package com.vol.controller.sys;

import com.vol.entity.TData;
import com.vol.entity.Operatelog;
import com.vol.miyao.OperatelogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/operatelog")
public class OperatelogController {

    @Autowired
    private OperatelogService operatelogService;

    @GetMapping("GetListJson")
    public TData<List<Operatelog>> GetListJson(int topNum){
        TData<List<Operatelog>> obj = operatelogService.GetList(topNum);
        return obj;
    }


}
